package net.pws.oos.web.dto;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import net.pws.common.beanutils.BeanUtils;
import net.pws.oos.biz.model.OperateLog;

@SuppressWarnings("rawtypes")
public class OperateLogDto extends OperateLog {
    
    private static final long serialVersionUID = 6827937369026042344L;
    
    public static OperateLogDto from(Map map) {
        if (map == null) {
            return null;
        }
        OperateLogDto dto = new OperateLogDto();
        BeanUtils.copyProperties(dto, map);
        return dto;
    }
    
    public static List<OperateLogDto> from(List<Map> maps) {
        List<OperateLogDto> list = new ArrayList<OperateLogDto>();
        for (Map map : maps) {
            list.add(from(map));
        }
        return list;
    }
    
    private String userId;
    
    private String userName;
    
    private String organId;
    
    private String organName;
    
    public String getUserId() {
        return userId;
    }
    
    public void setUserId(String userId) {
        this.userId = userId;
    }
    
    public String getUserName() {
        return userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }
    
    public String getOrganId() {
        return organId;
    }
    
    public void setOrganId(String organId) {
        this.organId = organId;
    }
    
    public String getOrganName() {
        return organName;
    }
    
    public void setOrganName(String organName) {
        this.organName = organName;
    }
    
}
